package com.oly.cms.admin.controller.page;

import com.oly.cms.admin.web.CmsCommonController;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/cms/config")
public class CmsConfigController extends CmsCommonController {

    private final String prefix = acceptPreifx + "config";

    @GetMapping("/cmsConfig")
    @RequiresPermissions("cms:config:view")
    public String configCms() {

        return prefix + "/cmsConfig";
    }

    @GetMapping("/appConfig")
    @RequiresPermissions("cms:config:view")
    public String configApp() {

        return prefix + "/appConfig";
    }

    @GetMapping("/webConfig")
    @RequiresPermissions("cms:config:view")
    public String configWeb() {
        return prefix + "/webConfig";
    }

}
